package com.zhangdi.demo.cousumer;

import com.zhangdi.demo.paymentdemo.api.service.IPayment;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;

@Component
@FeignClient(value = IPayment.server, path = IPayment.path)
public interface IPaymentResource extends IPayment {
        @GetMapping("/pay")
        String pay();
}
